package com.item.service;

import com.item.dao.NoteCollectMapper;
import com.item.dao.model.NoteCollect;
import com.item.dao.model.NoteCollectExample;
import com.item.dao.model.NoteCollectKey;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NoteCollectService {
    @Autowired
    private NoteCollectMapper noteCollectMapper;

    private static final Logger logger = Logger.getLogger(NoteCollectService.class);

    public int countByExample(NoteCollectExample example) {
        return this.noteCollectMapper.countByExample(example);
    }

    public NoteCollect selectByPrimaryKey(NoteCollectKey key) {
        return this.noteCollectMapper.selectByPrimaryKey(key);
    }

    public List<NoteCollect> selectByExample(NoteCollectExample example) {
        return this.noteCollectMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(NoteCollectKey key) {
        return this.noteCollectMapper.deleteByPrimaryKey(key);
    }

    public int updateByPrimaryKeySelective(NoteCollect record) {
        return this.noteCollectMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NoteCollect record) {
        return this.noteCollectMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(NoteCollectExample example) {
        return this.noteCollectMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(NoteCollect record, NoteCollectExample example) {
        return this.noteCollectMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(NoteCollect record, NoteCollectExample example) {
        return this.noteCollectMapper.updateByExample(record, example);
    }

    public int insert(NoteCollect record) {
        return this.noteCollectMapper.insert(record);
    }

    public int insertSelective(NoteCollect record) {
        return this.noteCollectMapper.insertSelective(record);
    }
}